package com.wffz.service;

import com.mysql.cj.xdevapi.Client;
import com.wffz.po.ClientUser;

/**
 * @author sunlei
 * @Description UserService
 * @date 2022/12/23 16:52
 **/
public interface UserService {


    public ClientUser findUserByUserName(String loginName);

    public ClientUser findUserByUserId(Long userId);


    public boolean saveClientUser(ClientUser clientUser);


    public boolean isExistClientUser(String loginName);

    public boolean updateClientUser(ClientUser clientUser);
    /**
     * @Description: [根据分享码获取用户]
     * @Title: findUserByinvitationCode
     * @Author: SUNLEI
     * @Date: 2023-05-04
     * @Param: rcode 
     * @Return: com.wffz.po.ClientUser
     * @Throws: 
     */
    public ClientUser findUserByinvitationCode(String rcode);

    public boolean validateUser(String loginName, String password);

    /**
     * @Description: [获取可提现金额]
     * @Title: getWithDrawAmount
     * @Author: SUNLEI
     * @Date: 2023-04-22
     * @Param: clientUser
     * @Return: float
     * @Throws:
     */
    public float getWithDrawAmount(ClientUser clientUser);
    
    /**
     * @Description: [分享数量] 
     * @Title: shareCount
     * @Author: SUNLEI
     * @Date: 2023-04-22
     * @Param: clientUser 
     * @Return: int
     * @Throws: 
     */
    public int shareCount(ClientUser clientUser);
}
